home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2004 #2 / K-CD-2-2004.ISO / OpenOffice Sv / f_0397 / python-core-2.2.2 / lib / FCNTL.py < prev    next >
Encoding:
Python Source  |  2003-07-18  |  404 b   |  15 lines

  1. """Backward-compatibility version of FCNTL; export constants exported by
  2. fcntl, and issue a deprecation warning.
  3. """
  4.  
  5. import warnings
  6. warnings.warn("the FCNTL module is deprecated; please use fcntl",
  7.               DeprecationWarning)
  8.  
  9.  
  10. # Export the constants known to the fcntl module:
  11. from fcntl import *
  12.  
  13. # and *only* the constants:
  14. __all__ = [s for s in dir() if s[0] in "ABCDEFGHIJKLMNOPQRSTUVWXYZ"]
  15.